package Pm.Cars;

public class Vehicle {
    String brand;
    int year;

    public Vehicle(String brand, int year) {
        this.brand = brand;
        this.year = year;
    }

    public void dispayInfo(){
        System.out.println("品牌：" +brand);
        System.out.println("年份:" + year);
    }
}